<?php
/**
*
* @package acp
* @version $Id: v3_modules.xml 52 2007-12-09 19:45:45Z jelly_doughnut $
* @copyright (c) 2007 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
             
/**
* @package acp
*/
class acp_dnd_chars
{
    var $u_action;
                     
    function main($id, $mode)
    {
        global $db, $user, $auth, $template;
        global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
                     
        $user->add_lang('mods/dnd_chars');
                             
        // Set up the page
        $this->tpl_name  = 'acp_dnd_chars';
        $this->page_title    = 'ACP_DND_CHARS';
                             
        // Set up general vars
        $greeter    = request_var('hello', '', true);
        $submit = isset($_POST['submit']) ? true : false;
        $hello      = '';
                             
        if ($mode == 'hello_bertie')
        {
            $hello = $user->lang['BERTIE'];
        }
        else if ($mode == 'hello_world')
        {
            $hello = $user->lang['WORLD'];
        }
        else if ($mode == 'hello_user')
        {
            $hello = $user->data['username'];
        }
                              
        if ($submit)
        {
            trigger_error(sprintf($user->lang['SAY_HELLO'], $greeter, $hello) . adm_back_link($this->u_action), E_USER_WARNING);
        }
        else
        {
            $template->assign_vars(array(
                'S_HELLO'           => $hello,
                'S_SUBMIT'          => $this->u_action)
            );
        }
    }
}
             
?>